<!--顶部用户信息模板-->
<ul class="layui-nav kt-topuser" lay-filter="kt-user">
    <li class="layui-nav-item" lay-unselect="">
        <a href="#/html/views/user_center.html">
            <img src="/html/images/headpic.jpg" class="layui-nav-img">
            <span class="name">看上隔壁小花了啦</span>
        </a>

        <dl class="layui-nav-child">
            <dd><a href="javascript:;">修改信息</a></dd>
            <dd><a href="javascript:;">安全管理</a></dd>
            <dd><a href="javascript:;">退了</a></dd>
        </dl>
    </li>
</ul>

<script>
    layui.use([
        'element'
    ], function () {
        var element = layui.element;

        element.render("nav","kt-user");
    });
</script>